﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类zEmployee
	/// </summary>
	[Serializable]
	public class zEmployee : Entity 
	{ 
		 public zEmployee() 
            : base("zEmployee") 
        { 

        }


		#region Model
		private int _empcode;
		private string _empname;
		private string _empaccount;
		private string _sex;
		private string _sexname;
		private int? _jobtitle;
		private string _jobtitlename;
		private int? _departmentid;
		private string _departmentname;
		private int? _companyid;
		private string _companyname;
		private string _workcode;
		private string _rzdate;
		private int? _sfrz;
		private int? _sfkq;
		private string _mobile;
		private string _email;
		private int? _status;
		private string _statusname;
		private string _createdate;
		private string _lastmoddate;
	 
		/// <summary>
		/// 
		/// </summary>
		public int empcode
		{
			get{ return _empcode; }
			set
			{
				this.OnPropertyValueChange(_.empcode,_empcode,value);
				this._empcode = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string empname
		{
			get{ return _empname; }
			set
			{
				this.OnPropertyValueChange(_.empname,_empname,value);
				this._empname = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string empaccount
		{
			get{ return _empaccount; }
			set
			{
				this.OnPropertyValueChange(_.empaccount,_empaccount,value);
				this._empaccount = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string sex
		{
			get{ return _sex; }
			set
			{
				this.OnPropertyValueChange(_.sex,_sex,value);
				this._sex = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string sexname
		{
			get{ return _sexname; }
			set
			{
				this.OnPropertyValueChange(_.sexname,_sexname,value);
				this._sexname = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? jobtitle
		{
			get{ return _jobtitle; }
			set
			{
				this.OnPropertyValueChange(_.jobtitle,_jobtitle,value);
				this._jobtitle = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string jobtitlename
		{
			get{ return _jobtitlename; }
			set
			{
				this.OnPropertyValueChange(_.jobtitlename,_jobtitlename,value);
				this._jobtitlename = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? departmentid
		{
			get{ return _departmentid; }
			set
			{
				this.OnPropertyValueChange(_.departmentid,_departmentid,value);
				this._departmentid = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string departmentname
		{
			get{ return _departmentname; }
			set
			{
				this.OnPropertyValueChange(_.departmentname,_departmentname,value);
				this._departmentname = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? companyid
		{
			get{ return _companyid; }
			set
			{
				this.OnPropertyValueChange(_.companyid,_companyid,value);
				this._companyid = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string companyname
		{
			get{ return _companyname; }
			set
			{
				this.OnPropertyValueChange(_.companyname,_companyname,value);
				this._companyname = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string workcode
		{
			get{ return _workcode; }
			set
			{
				this.OnPropertyValueChange(_.workcode,_workcode,value);
				this._workcode = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string rzdate
		{
			get{ return _rzdate; }
			set
			{
				this.OnPropertyValueChange(_.rzdate,_rzdate,value);
				this._rzdate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? sfrz
		{
			get{ return _sfrz; }
			set
			{
				this.OnPropertyValueChange(_.sfrz,_sfrz,value);
				this._sfrz = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? sfkq
		{
			get{ return _sfkq; }
			set
			{
				this.OnPropertyValueChange(_.sfkq,_sfkq,value);
				this._sfkq = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string mobile
		{
			get{ return _mobile; }
			set
			{
				this.OnPropertyValueChange(_.mobile,_mobile,value);
				this._mobile = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string email
		{
			get{ return _email; }
			set
			{
				this.OnPropertyValueChange(_.email,_email,value);
				this._email = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? status
		{
			get{ return _status; }
			set
			{
				this.OnPropertyValueChange(_.status,_status,value);
				this._status = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string statusname
		{
			get{ return _statusname; }
			set
			{
				this.OnPropertyValueChange(_.statusname,_statusname,value);
				this._statusname = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string createdate
		{
			get{ return _createdate; }
			set
			{
				this.OnPropertyValueChange(_.createdate,_createdate,value);
				this._createdate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string lastmoddate
		{
			get{ return _lastmoddate; }
			set
			{
				this.OnPropertyValueChange(_.lastmoddate,_lastmoddate,value);
				this._lastmoddate = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.empcode,
				_.empname,
				_.empaccount,
				_.sex,
				_.sexname,
				_.jobtitle,
				_.jobtitlename,
				_.departmentid,
				_.departmentname,
				_.companyid,
				_.companyname,
				_.workcode,
				_.rzdate,
				_.sfrz,
				_.sfkq,
				_.mobile,
				_.email,
				_.status,
				_.statusname,
				_.createdate,
				_.lastmoddate
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_empcode,
				_empname,
				_empaccount,
				_sex,
				_sexname,
				_jobtitle,
				_jobtitlename,
				_departmentid,
				_departmentname,
				_companyid,
				_companyname,
				_workcode,
				_rzdate,
				_sfrz,
				_sfkq,
				_mobile,
				_email,
				_status,
				_statusname,
				_createdate,
				_lastmoddate
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "empcode":
                    this._empcode = DataHelper.ConvertValue<int>(value);
                    break; 
				case "empname":
                    this._empname = DataHelper.ConvertValue<string>(value);
                    break; 
				case "empaccount":
                    this._empaccount = DataHelper.ConvertValue<string>(value);
                    break; 
				case "sex":
                    this._sex = DataHelper.ConvertValue<string>(value);
                    break; 
				case "sexname":
                    this._sexname = DataHelper.ConvertValue<string>(value);
                    break; 
				case "jobtitle":
                    this._jobtitle = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "jobtitlename":
                    this._jobtitlename = DataHelper.ConvertValue<string>(value);
                    break; 
				case "departmentid":
                    this._departmentid = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "departmentname":
                    this._departmentname = DataHelper.ConvertValue<string>(value);
                    break; 
				case "companyid":
                    this._companyid = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "companyname":
                    this._companyname = DataHelper.ConvertValue<string>(value);
                    break; 
				case "workcode":
                    this._workcode = DataHelper.ConvertValue<string>(value);
                    break; 
				case "rzdate":
                    this._rzdate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "sfrz":
                    this._sfrz = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "sfkq":
                    this._sfkq = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "mobile":
                    this._mobile = DataHelper.ConvertValue<string>(value);
                    break; 
				case "email":
                    this._email = DataHelper.ConvertValue<string>(value);
                    break; 
				case "status":
                    this._status = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "statusname":
                    this._statusname = DataHelper.ConvertValue<string>(value);
                    break; 
				case "createdate":
                    this._createdate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "lastmoddate":
                    this._lastmoddate = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "empcode":
                    return this._empcode; 
				case "empname":
                    return this._empname; 
				case "empaccount":
                    return this._empaccount; 
				case "sex":
                    return this._sex; 
				case "sexname":
                    return this._sexname; 
				case "jobtitle":
                    return this._jobtitle; 
				case "jobtitlename":
                    return this._jobtitlename; 
				case "departmentid":
                    return this._departmentid; 
				case "departmentname":
                    return this._departmentname; 
				case "companyid":
                    return this._companyid; 
				case "companyname":
                    return this._companyname; 
				case "workcode":
                    return this._workcode; 
				case "rzdate":
                    return this._rzdate; 
				case "sfrz":
                    return this._sfrz; 
				case "sfkq":
                    return this._sfkq; 
				case "mobile":
                    return this._mobile; 
				case "email":
                    return this._email; 
				case "status":
                    return this._status; 
				case "statusname":
                    return this._statusname; 
				case "createdate":
                    return this._createdate; 
				case "lastmoddate":
                    return this._lastmoddate; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","zEmployee");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field empcode = new Field("empcode","zEmployee","empcode");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field empname = new Field("empname","zEmployee","empname");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field empaccount = new Field("empaccount","zEmployee","empaccount");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field sex = new Field("sex","zEmployee","sex");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field sexname = new Field("sexname","zEmployee","sexname");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field jobtitle = new Field("jobtitle","zEmployee","jobtitle");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field jobtitlename = new Field("jobtitlename","zEmployee","jobtitlename");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field departmentid = new Field("departmentid","zEmployee","departmentid");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field departmentname = new Field("departmentname","zEmployee","departmentname");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field companyid = new Field("companyid","zEmployee","companyid");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field companyname = new Field("companyname","zEmployee","companyname");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field workcode = new Field("workcode","zEmployee","workcode");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field rzdate = new Field("rzdate","zEmployee","rzdate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field sfrz = new Field("sfrz","zEmployee","sfrz");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field sfkq = new Field("sfkq","zEmployee","sfkq");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field mobile = new Field("mobile","zEmployee","mobile");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field email = new Field("email","zEmployee","email");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field status = new Field("status","zEmployee","status");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field statusname = new Field("statusname","zEmployee","statusname");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field createdate = new Field("createdate","zEmployee","createdate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field lastmoddate = new Field("lastmoddate","zEmployee","lastmoddate");
		}
		#endregion

 
	}
}

